Skip to content

Conversation

@CauanCabral
Copy link
Contributor

Added an option to allow resize of original file.

Options are:

  • resizeOriginal: boolean, true if you want resize. Default is false.
  • resize: array, parameters to resize
  • * maxWidth : int, in pixels
  • * maxHeight: int, in pixels
  • * quality: int, percent (0-100)

@josegonzalez
Copy link
Contributor

What is the use-case and how do I use this? Documentation would be wonderful, as so many features of MeioUpload remain undocumented.

@CauanCabral
Copy link
Contributor Author

I've an aplication where photos are submited by non-technical users. I don't want store 2 files (original and thumb), but some times user will submit very large images and we do not need this. So I'll resize the original file to optimal size.

I think this is a common scenario.

About docs... the current version of MeioUpload don't have about parameters info, where I put that?

@CauanCabral CauanCabral reopened this Jul 22, 2011
@CauanCabral
Copy link
Contributor Author

Sorry to close pull

@josegonzalez
Copy link
Contributor

Create a new section about parameters and add it in. For reference, here is how I do it in my upload project: https://github.com/josegonzalez/upload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants